import Vue from 'vue'
import Router from 'vue-router'
import Home from './Home'
import Hello from './Hello.vue'
import goods from '../goods/goods.vue'
import ratings from '../ratings/ratings.vue'
import seller from '../seller/seller.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home', // 访问的路径
      name: 'Home',
      component: Home // 视图对应的组件
    }, {
      path: '/hello',
      name: 'Hello',
      component: Hello
    },
    {
        path: '/goods',
        name: "goods",
        component: goods
      },
      {
        path: 'ratings',
        component: ratings,
        name: 'ratings'
      },
      {
        path: 'seller',
        component: seller,
        name: 'seller'
      }
  ]
})